﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using IHISCETeim.BLL;

namespace IHISCETeim.Web.MachineSys.MacModel
{
    public partial class ExeclOJobList : OJobList
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.导出 };
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            DataBind();
        }
        private void DataBind()
        {
            DataTableCollection dtc = OJobController.GetPagination(GetWhereSql(), pageNum, 9999999, SQLSort, ref TotalCount);
            this.rpMenu.DataSource = dtc[0];
            this.rpMenu.DataBind();
            sumdt = dtc[1];

            ExportToExecl("机器库存一览表", this.rpMenu);
        }
    }
}